import Vue from "vue";
import {mapGetters} from "vuex";
import {Toast} from 'vant';

Vue.mixin({
    data() {
        return {};
    },
    computed: {
        ...mapGetters({
            tokenGetter: "tokenGetter", //token信息
            userInfoGetter: "userInfoGetter", // 用户信息
            tabActiveGetter: "tabActiveGetter", // tab索引
        }),
    },
    methods: {
        routerPush(url) {
            if (!url) {
                Toast('敬请期待');
                return;
            }
            this.$router.push(url)
        }
    },
});
